Documentation ¶
Overview ¶
Package api provides all serving routes.
Index ¶
- func ApplyAccountRoute(router *gin.RouterGroup, db *mongo.Database)
- func ApplyAudioRoute(router *gin.RouterGroup, db *mongo.Database, pathPrefixData string, ...)
- func ApplyAuthRoute(router *gin.RouterGroup, db *mongo.Database, ...)
- func ApplyAuthorsRoute(router *gin.RouterGroup, db *mongo.Database)
- func ApplyCategoriesRoute(router *gin.RouterGroup, db *mongo.Database)
- func ApplyDocsRoute(router *gin.RouterGroup)
- func ApplyImagesRoute(router *gin.RouterGroup, pathPrefixData string)
- func ApplyStoriesRoute(router *gin.RouterGroup, db *mongo.Database)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAccountRoute ¶
func ApplyAccountRoute(router *gin.RouterGroup, db *mongo.Database)
ApplyAccountRoute applies account routes.
func ApplyAudioRoute ¶
func ApplyAudioRoute(router *gin.RouterGroup, db *mongo.Database, pathPrefixData string, jwtSettings model.JwtSettings)
ApplyAudioRoute is a media content route. It uses query authentication because some players may not have the ability to use custom headers.
func ApplyAuthRoute ¶
func ApplyAuthRoute(router *gin.RouterGroup, db *mongo.Database, clients map[string]utils.ClientConfig, vkSettings vk.Settings, jwtSettings model.JwtSettings)
ApplyAuthRoute is an auth API route. It provides VK and refresh_token authorization.
func ApplyAuthorsRoute ¶
func ApplyAuthorsRoute(router *gin.RouterGroup, db *mongo.Database)
ApplyAuthorsRoute contains initialization for authors API routes, which provides ability to filter and search content authors.
func ApplyCategoriesRoute ¶
func ApplyCategoriesRoute(router *gin.RouterGroup, db *mongo.Database)
ApplyCategoriesRoute contains initialization for categories API routes, which provides ability to filter and search content categories.
func ApplyDocsRoute ¶
func ApplyDocsRoute(router *gin.RouterGroup)
ApplyDocsRoute contains initialization for docs static API routes.
func ApplyImagesRoute ¶
func ApplyImagesRoute(router *gin.RouterGroup, pathPrefixData string)
ApplyImagesRoute is a media content route. It uses query authentication because some players may not have the ability to use custom headers.
func ApplyStoriesRoute ¶
func ApplyStoriesRoute(router *gin.RouterGroup, db *mongo.Database)
ApplyStoriesRoute contains initialization for categories API routes, which provides ability to filter and search THE NIGHT STORIES.
Types ¶
This section is empty.