Playing Next Lesson In
seconds

Let's Learn AdonisJS 6 #2.0

Routes and How To Create Them

In This Lesson

We'll learn how to define routes within AdonisJS and how those routes work.

Created by
@tomgobich
Published

Join the Discussion 6 comments

Create a free account to join in on the discussion
  1. Question, why I encountered error when I tried to make a request from REST Client or curl?

    GET http://localhost:3333/movies http/1.1

    It said,

    The connection was rejected. Either the requested service isn’t running on the requested server/port, the proxy settings in vscode are misconfigured, or a firewall is blocking requests. Details: RequestError: connect ECONNREFUSED 127.0.0.1:3333.

    1
    1. Responding to fadli-hidayatullah
      @tomgobich
      1
  2. which extension do you use for that autocomplete on vscode? It looks neat.

    1
    1. Responding to chanbroset-prach
      @tomgobich

      Hey Chanbroset-Prach! I believe that should just be the default IntelliSense which comes with VSCode.

      1
      1. Responding to tomgobich

        I installed IntelliSense as well but the suggestion when typing function is not much descriptive like yours when you hovering each method, you can see the description….

        Ref: https://imgur.com/K5Kt6Ox

        TODO
        0
        1. Responding to chanbroset-prach
          @tomgobich
          0