router

package
v0.0.0-...-a24ed69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Run = func(app *fiber.App) {

		app.Get("/verify", func(c *fiber.Ctx) error {
			return c.SendStatus(200)
		})

		auth.DefaultHandler.Route(
			app.Group("/auth"),
		)

		api := app.Group("/api")
		{

			v1 := api.Group("/v1")
			{

				users.DefaultHandler.Route(
					v1.Group("/users"),
				)

				posts.DefaultHandler.Route(
					v1.Group("/posts"),
				)

				chat := v1.Group("/chats")
				{

					chats.DefaultHandler.Route(
						chat,
					)
				}
			}
		}
	}
)

Run function initializes the application routes and middleware.

Note that this method use only default handlers.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL