alickbass / sweetrouter Goto Github PK
View Code? Open in Web Editor NEWDeclarative URL routing in swift
License: MIT License
Declarative URL routing in swift
License: MIT License
Need to update Travis CI xcode image to 8.4
Part of #24
Now we have 2 protocols that are ambiguous and it's really hard to get what they mean: RouterType
and RouteType
. The solution is the following: Rename RouterType
to EndpointType
and add a proper documentation on these protocols
Hi
I need to have a different defaultPath for different environments... is it possible to do?
example
alickbass.com/api
is prod
255.255.21.21:8080/alick/api
is dev
Thank you
We need to refactor from URL.Environment
to URL.Env
Part of #24
Part of #24
We need to rename
static var `default`: Self.Environment { get }
to
static var current: Self.Environment { get }
This will remove annoying back ticks
Now we have to always add
init(_ environment: Environment = .localhost, at route: Route) {
self.environment = environment
self.route = route
}
To every RouterType, which is super annoying
README now lacks proper definitions. We need to provide definitions for the following components of the Router:
Instead of:
URL.Route(path: ["posts"], query: ("date", date), ("userId", "someId"))
refactor to the following format:
URL.Route(at: "posts").query(("date", date), ("userId", "someId")).fragment("someFragment")
For the completeness, the IP
should have the following:
IPv4
and IPv6
that conform to the same protocolIP
types from String
Add possibility to get URL from URL.Environment
directly
Add to README on how to use this library with Alamofire
Now we have 4 shemes for different platforms. However, we can make it only 1 scheme for all the platforms. The example is here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.