Skip to content

Commit

Permalink
Restrict Location annotation targets, allow on a typealias (ktorio#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mashkov authored and Thorsten Schleinzer committed Feb 26, 2019
1 parent b3a8be0 commit 433211a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ annotation class KtorExperimentalLocationsAPI
* @property path the route path, including class property names wrapped with curly braces.
*/
@KtorExperimentalLocationsAPI
@Target(AnnotationTarget.CLASS, AnnotationTarget.TYPEALIAS)
annotation class Location(val path: String)

@Suppress("KDocMissingDocumentation")
Expand Down

0 comments on commit 433211a

Please sign in to comment.